#include <iostream>
#include <algorithm>

using namespace std;

typedef struct
{
    int id;
    int xueye;
    int tuozhan;
    int zonghe;

    int gettotal()
    {
        return xueye + tuozhan;
    }
} Data;

string test(Data data)
{
    if (data.gettotal() > 140 && data.zonghe >= 80)
    {
        return "Excellent";
    }
    return "Not excellent";
}

int main(int argc, char const *argv[])
{
    Data datas[1024], temp;
    int n, i;
    cin >> n;
    for (i = 0; i < n; i++)
    {
        cin >> temp.id
            >> temp.xueye
            >> temp.tuozhan;
        temp.zonghe = temp.xueye * 0.7f + temp.tuozhan * 0.3f;
        datas[i] = temp;
    }

    for (i = 0; i < n; i++)
    {
        if (i)
        {
            cout << "\n";
        }
        cout << test(datas[i]);
    }
    
    return 0;
}
